export const BACKEND_URL = 'http://localhost:8000'
export const FRONTEND_URL = 'http://localhost:5173'


//快捷跳转
export function goTo(target, alert=null){
    if (alert !== null){
        window.alert(alert);
    }
    window.location.href = `${FRONTEND_URL}/${target}`
}

//快捷获取URL
export function getUrl(target){
    return `${FRONTEND_URL}/${target}`
}

//设置指定ID名的内容
export function setIdContent(id, content){
    document.getElementById(id).setHTMLUnsafe(content)
}